<!DOCTYPE html>
<!--
2016-12-27 SoChishun Added.
-->
<html>
    <head>
        <title>后台管理系统</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="/skin/scriptlib/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
        <link rel="stylesheet" href="/skin/scriptlib/bootstrap-3.3.7-dist/css/bootstrap-theme.min.css" />
        <link rel="stylesheet" href="/skin/scriptlib/ui-layout-1.4.0/layout-default-min.css" />
        <link rel="stylesheet" href="/skin/scriptlib/jquery-ui-1.12.1/jquery-ui.min.css" />
        <link rel="stylesheet" href="/skin/theme/sueuix5/css/sueuix5.css" />
        <link rel="stylesheet" href="/skin/theme/sueuix5/css/index.css" />
    </head>
    <body>
        <!--
        ====body====
        body_hd_include
        body_aside
        body_main
        body_ft_include
        body_ft_script
        -->
        <!--body_hd_include-->
        <script src="/skin/scriptlib/jquery/jquery-1.12.3.min.js"></script>
        <script src="/skin/scriptlib/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
        <script src="/skin/scriptlib/jquery-ui-1.12.1/jquery-ui.min.js"></script>
        <script src="/skin/scriptlib/jquery-ui-1.12.1/i18n/datepicker-zh-CN.js" type="text/javascript"></script>
        <script src="/skin/scriptlib/jQuery-Timepicker-Addon-1.6.3/dist/jquery-ui-timepicker-addon.min.js"></script>
        <script src="/skin/scriptlib/ui-layout-1.4.0/jquery.layout-min.js"></script>
        <script src="/skin/scriptlib/layer-v3.0.1/layer/layer.js"></script>
        <!--/body_hd_include-->
        <!--head-->
        <div class="ui-layout-north">
            <div class="head">
                <div class="col-lg-3">                    
                    <div class="logo"><a href="index.html">后台管理系统</a><small>厦门丝纶堂丝绸文化有限公司</small></div>
                </div>
                <div class="col-lg-5 col-lg-offset-4">
                    <div class="top-right-zone">
                        <ul class="nav nav-pills">
                            <li><a href="#" title="在新窗口中打开网站前台" target="_blank"><i class="glyphicon glyphicon-home"></i>网站</a></li>
                            <li><a href="#" id="xsui-btn-add-favorite" title="把当前网址加入收藏夹"><i class="glyphicon glyphicon-heart"></i>收藏</a></li>
                            <li id="my-message" style="position: relative;">
                                <a href="#" title="您有新的通知消息，请及时处理"><i class="glyphicon glyphicon-envelope"></i>消息<em class="badge" style="color:#F90">42</em></a>
                                <div class="panel panel-danger xsui-dropdown-panel" style="width:170px; right: 0;">
                                    <div class="panel-heading">通知消息<a href="#" class="xsui-panel-close-button"><i class="glyphicon glyphicon-remove"></i></a></div>
                                    <ul class="list-group">
                                        <li class="list-group-item"><a href="#" title="架的探索也随着版本迭代">架的探索也随着版本...</a></li>
                                        <li class="list-group-item"><a href="#" title="架的探索也随着版本迭代">架的探索也随着版本...</a></li>
                                        <li class="list-group-item"><a href="#" title="架的探索也随着版本迭代">架的探索也随着版本...</a></li>
                                        <li class="list-group-item"><a href="#" title="架的探索也随着版本迭代">架的探索也随着版本...</a></li>
                                    </ul>
                                    <div class="panel-footer text-right">
                                        <a href="#">更多...</a>
                                    </div>
                                </div>
                            </li>
                            <li id="user-profile" style="position: relative;" data-url="{:url('getLoginInfo')}">
                                <a href="#"><img class="xsui-img-16" src="/skin/theme/sueuix5/images/face.png" alt="" style="vertical-align: text-bottom; margin-right: 5px;" />Administrator</a>
                                <div class="panel panel-info xsui-dropdown-panel" style="width:300px; right:0">
                                    <div class="panel-heading">个人资料<a href="#" class="xsui-panel-close-button"><i class="glyphicon glyphicon-remove"></i></a></div>
                                    <div class="panel-body">
                                        <table>
                                            <tr>
                                                <th style="text-align: center;"><img class="xsui-img-72" style="margin:0 10px 0 5px;" src="/skin/theme/sueuix5/images/face.png" alt="" /></th>
                                                <td>
                                                    帐号：Administrator<br />
                                                    昵称：澜<br />
                                                    角色：管理员<br />
                                                    部门：无<br />
                                                </td>
                                            </tr>
                                            <tr><th>上次登录：</th><td>11-29 18:11 IP:192.168.1.93</td></tr>
                                            <tr><th>个性签名：</th><td>坚持产品梦想</td></tr>
                                        </table>
                                    </div>
                                    <div class="panel-footer text-right">
                                        <a href="{:url('Member/edit_profile')}" title="编辑个人资料" class="xsui-btn-edit-dialog"><i class="glyphicon glyphicon-edit"></i>编辑</a>
                                        <a href="{:url('Login/logout')}" onclick="return confirm('您确定要退出当前帐号吗?');" title="登出当前帐号"><i class="glyphicon glyphicon-off"></i>退出</a>
                                    </div>
                                </div>
                            </li>
                        </ul>
                        <div style="margin:10px 5px 0 0; text-align: right;">
                            <div class="xsui-clock" id="head-clock">
                                <span class="xsui-simple-time">00:00:00</span>
                                <div class="xsui-clock-panel xsui-dropdown-panel">
                                    <table>
                                        <tr><td><canvas id="clock1_" width="191px;" height="191px"></canvas></td><td><div class="xsui-calendar-panel"></div></td></tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>                    
            </div>
        </div>
        <!--/head-->
        <!--aside-->        
        <div class="ui-layout-west">            
            <div class="aside-menu">
                {foreach $menus as $vo}                
                <h3>{$vo.title}</h3>
                <div>                    
                    <ul>
                        {foreach $vo['children'] as $vo2}
                        {foreach $vo2['children'] as $vo3}
                        <li><a href="{:url($vo3['url'])}" title="{$vo3.title}">{$vo3.title}</a></li>
                        {/foreach}
                        {/foreach}
                    </ul>
                </div>
                {/foreach}
            </div>
        </div>
        <!--aside-->
        <!--main-->
        <div class="ui-layout-center"><main></main></div>
        <!--/main-->
        <!--foot-->
        <div class="ui-layout-south">
            <div class="foot">
                <div class="xsui-foot-right">
                    <div class="copyright">Copyright &COPY; 2016 SUEUIX 5.0</div>
                </div>
                <div class="xsui-clear"></div>
            </div>

        </div>
        <!--/foot-->
        <div id="window-config-text" style="display:none">{"KINDEDITOR_UPLOADER":"{:url('UploadHandler/kindeditor_upload')}"}</div>
        <!--body_ft_include-->
        <script src="/skin/theme/sueuix5/plugin/canvas-clock/canvas_clock.js" type="text/javascript"></script>
        <script src="/skin/theme/sueuix5/ctrl/index/index.js"></script>
        <!--/body_ft_include-->
        <!--body_ft_script-->
        <script type="text/javascript">
                                            /* page config data */
                                            window.config = new Function("return " + $('#window-config-text').text())();
                                            $(document).ready(function () {
                                                xsui_init();
                                            });
                                            // 加载登录信息 2017-1-3
                                            function xsfn_load_login_panel() {
                                                var url = $('#user-profile').data('url');
                                                $.get(url, function (data) {
                                                    if (data.status) {
                                                        var str = '<table><tr><th style="text-align: center;"><img class="xsui-img-72" style="margin:0 10px 0 5px;" src="/skin/theme/sueuix5/images/face.png" alt="" /></th><td> 帐号：{user}<br /> 角色：{role}<br /></td></tr><tr><th>上次登录：</th><td title="IP:{loginip}">{logintime}</td></tr><tr><th>个性签名：</th><td>{sign}</td></tr></table>'.replace('{user}', data.info.user_name).replace('{role}', data.info.role_title).replace('loginip', data.info.login_ip).replace('{logintime}', data.info.login_time).replace('{sign}', data.info.personal_sign);
                                                        $('#user-profile .panel-body').html(str);
                                                        $('#user-profile>a').html('<img class="xsui-img-16" src="/skin/theme/sueuix5/images/face.png" alt="" style="vertical-align: text-bottom; margin-right: 5px;" />' + data.info.user_name);
                                                    } else {
                                                        location.href = data.info;
                                                    }
                                                })
                                            }
                                            xsfn_load_login_panel();
                                            setInterval(xsfn_load_login_panel, 5000); // 5秒刷新一次登录状态
                                            $('#xsui-btn-add-favorite').click(function () {
                                                xsfn_add_favorite();
                                                return false;
                                            });
                                            // 加入收藏夹 2017-1-3
                                            function xsfn_add_favorite(title, url) {
                                                if (!url) {
                                                    url = window.location;
                                                }
                                                if (!title) {
                                                    title = document.title;
                                                }
                                                try {
                                                    window.external.addFavorite(url, title);
                                                } catch (e) {
                                                    try {
                                                        window.sidebar.addPanel(title, url, "");
                                                    } catch (e) {
                                                        alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请使用Ctrl+D进行添加");
                                                    }
                                                }
                                            }

        </script>
        <!--/body_ft_script-->
    </body>
</html>
